export const PRODUCT_AUDIT_STATUS_MAP = {
    NOT_TO_APPROVE: 0,
    PASSED: 2,
    REJECTED: 3,
    TO_APPROVE: 1,
} as const

export const PRODUCT_STATUS_MAP = {
    OFF_SHELF: 0,
    ON_SHELF: 1,
} as const

export const PRODUCT_AUDIT_STATUS = [
    {
        label: '未发起审核',
        value: PRODUCT_AUDIT_STATUS_MAP.NOT_TO_APPROVE,
    },
    {
        label: '待审核',
        value: PRODUCT_AUDIT_STATUS_MAP.TO_APPROVE,
    },
    {
        label: '审核通过',
        value: PRODUCT_AUDIT_STATUS_MAP.PASSED,
    },
    {
        label: '审核不通过',
        value: PRODUCT_AUDIT_STATUS_MAP.REJECTED,
    },
]

export const PRODUCT_AUDIT_TYPE = [
    {
        label: '上架',
        value: 0,
    },
    {
        label: '详情修订',
        value: 1,
    },
]

export const PRODUCT_STATUS = [
    {
        label: '下架',
        value: PRODUCT_STATUS_MAP.OFF_SHELF,
    },
    {
        label: '上架',
        value: PRODUCT_STATUS_MAP.ON_SHELF,
    },
]

export const PRODUCT_TYPE = [
    {
        label: '集采内',
        value: 0,
    },
    {
        label: '集采外',
        value: 1,
    },
]

export const PRODUCT_SOURCE = [
    {
        label: '集采商城',
        value: 0,
    },
    {
        label: '采筑商城',
        value: 1,
    },
]

export const IS_INCLUDE_TAX = [
    {
        label: '否',
        value: 0,
    },
    {
        label: '是',
        value: 1,
    },
]

export const IS_FREE_SHIP = [
    {
        label: '否',
        value: 0,
    },
    {
        label: '是',
        value: 1,
    },
]

export const IS_FREE_INSTALL = [
    {
        label: '否',
        value: 0,
    },
    {
        label: '是',
        value: 1,
    },
]

export const SKU_PRICE_TYPE = [
    {
        label: '区间参考价',
        value: 0,
    },
    {
        label: '固定参考价',
        value: 1,
    },
    {
        label: '固定成交价',
        value: 2,
    },
    {
        label: '询价',
        value: 3,
    },
]

export const PRODUCT_LOG_TYPE = [
    {
        label: '创建商品',
        value: 0,
    },
    {
        label: '编辑商品',
        value: 1,
    },
    {
        label: '详情修订',
        value: 2,
    },
    {
        label: '上架',
        value: 3,
    },
    {
        label: '下架',
        value: 4,
    },
    {
        label: '上架审核',
        value: 5,
    },
    {
        label: '详情修订审核',
        value: 6,
    },
]
